import request from '@/utils/request'
export const getScreenDataByDeptId1 = (deptId=100) => request({
    url:  `/otto/screenTwo?deptId=${deptId}`,
    method: 'get'
})

export const getScreenDataByDeptId = (deptId=100) => request({
    url:  `/otto/screenThree`,
    params: {
        deptId: deptId,
        area: deptId == 131 ? '江西' : '内蒙古',
        useType: deptId==130 ? '使用场地2' : '使用场地1'
    },
    method: 'get'
})

export const getDeptById = (id=100) => request({
    url: `/system/dept/listThree`,
    method: 'post',
    data: {
        deptId: id
    }
})

export const getData =  (deptId=100, type='screenCurrentWeek') => request({
    url: '/app/test/ajaxTwo',
    method: 'get',
    params: {
        deptId: deptId,
        screen: type,
        area: deptId == 131 ? '江西' : '内蒙古',
        useType: deptId==130 ? '使用场地2' : '使用场地1'
    }
})


